function main(){
    //获取树数据list
    const list = this.smoothTree(this.renderTreeData);
    const checkedKeys = [];
    const selectedData = [];
    //获取主键列名
    const idColumName = this.getIdColumnName();
    //循环判断哪些节点选中
    list.forEach(x => {
        //先判断节点可被选中
        if (x.checkable) {
            //获取节点的key值
            const nodeKy = x[idColumName] || x.data[idColumName];
            //判断key值是否为指定的要选中的key
            if(nodeKy == '21' || nodeKy == '22')
            {
                checkedKeys.push(nodeKy);
                selectedData.push(x);
            }         
        }
    });
    this.checkedKeys = checkedKeys;
    this.selectedData = selectedData;
}